package recorder

import (
	"context"

	"github.com/gogf/gf/v2/frame/g"
)

func (r *sRecorder) Work(ctx context.Context, aid int) error {
	if errs := r.Done(ctx, aid); nil != errs {
		return errs
	}
	g.Log().Info(ctx, "开始执行录制文件OCR")
	return r.Ocr(ctx, aid)
}
